package com.zmn.oms.zmn.business.interfaces.order;

import com.zmn.oms.common.exception.OmsBaseException;
import com.zmn.oms.model.bo.order.OrderBO;
import com.zmn.oms.model.dto.order.create.CallCenterOrderCluesDTO;
import com.zmn.oms.model.dto.order.create.CreateOrderDTOH;

/**
 * 类描述：创建订单业务Service
 *
 * @author lhl
 * @date 2020/02/01 14:17
 */
public interface CreateOrderBService {

    /**
     * 提取订单线索中的数据，并封装成录单对象
     * @return
     * @throws OmsBaseException
     */
    CreateOrderDTOH prepareCreateOrderByCallCenterOrderClues(CallCenterOrderCluesDTO callCenterOrderCluesDTO) throws OmsBaseException;

    /**
     * 新建订单
     * @param createOrderDTOH
     * @throws OmsBaseException
     */
    OrderBO doCreateOrder(CreateOrderDTOH createOrderDTOH) throws OmsBaseException;
}
